package com.ruoyi.audit.service.impl;

import java.util.List;

import com.ruoyi.domain.UserCashRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.audit.mapper.UserCashRecordMapper;
import com.ruoyi.audit.service.IUserCashRecordService;

/**
 * 用户提现记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-24
 */
@Service
public class UserCashRecordServiceImpl implements IUserCashRecordService 
{
    @Autowired
    private UserCashRecordMapper userCashRecordMapper;

    /**
     * 查询用户提现记录
     * 
     * @param cashid 用户提现记录ID
     * @return 用户提现记录
     */
    @Override
    public UserCashRecord selectUserCashRecordById(Long cashid)
    {
        return userCashRecordMapper.selectUserCashRecordById(cashid);
    }

    /**
     * 查询用户提现记录列表
     * 
     * @param userCashRecord 用户提现记录
     * @return 用户提现记录
     */
    @Override
    public List<UserCashRecord> selectUserCashRecordList(UserCashRecord userCashRecord)
    {
        return userCashRecordMapper.selectUserCashRecordList(userCashRecord);
    }

    /**
     * 新增用户提现记录
     * 
     * @param userCashRecord 用户提现记录
     * @return 结果
     */
    @Override
    public int insertUserCashRecord(UserCashRecord userCashRecord)
    {
        return userCashRecordMapper.insertUserCashRecord(userCashRecord);
    }

    /**
     * 修改用户提现记录
     * 
     * @param userCashRecord 用户提现记录
     * @return 结果
     */
    @Override
    public int updateUserCashRecord(UserCashRecord userCashRecord)
    {
        return userCashRecordMapper.updateUserCashRecord(userCashRecord);
    }

    /**
     * 批量删除用户提现记录
     * 
     * @param cashids 需要删除的用户提现记录ID
     * @return 结果
     */
    @Override
    public int deleteUserCashRecordByIds(Long[] cashids)
    {
        return userCashRecordMapper.deleteUserCashRecordByIds(cashids);
    }

    /**
     * 删除用户提现记录信息
     * 
     * @param cashid 用户提现记录ID
     * @return 结果
     */
    @Override
    public int deleteUserCashRecordById(Long cashid)
    {
        return userCashRecordMapper.deleteUserCashRecordById(cashid);
    }
}
